import request from '@/utils/request'

// 查询百度热搜列表
export function listBaiduhot(query) {
  return request({
    url: '/system/baiduhot/list',
    method: 'get',
    params: query
  })
}

// 查询百度热搜详细
export function getBaiduhot(id) {
  return request({
    url: '/system/baiduhot/' + id,
    method: 'get'
  })
}

// 新增百度热搜
export function addBaiduhot(data) {
  return request({
    url: '/system/baiduhot',
    method: 'post',
    data: data
  })
}

// 修改百度热搜
export function updateBaiduhot(data) {
  return request({
    url: '/system/baiduhot',
    method: 'put',
    data: data
  })
}

// 删除百度热搜
export function delBaiduhot(id) {
  return request({
    url: '/system/baiduhot/' + id,
    method: 'delete'
  })
}
